void *readFully(int);
void *chk_realloc(void*, size_t);
void *chk_malloc(size_t);
void writeLine(int*, void*, int);
int connectToServer(char*, char*);
char *readLine(int*);
bool checkForReading(int, int);
